# New ports collection makefile for:	top
# Date created:		2006-06-09
# Whom:			Gea-Suan Lin <gslin@cs.nctu.edu.tw>
#
# $Id: Makefile 68 2006-08-13 09:19:35Z gslin $
#

PORTNAME=	top
PORTVERSION=	1.0
PORTREVISION=	1
CATEGORIES=	cs
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	gslin@cs.nctu.edu.tw
COMMENT=	Modified top to reduce the loading of NIS server

PLIST_FILES=	bin/top

.include <bsd.port.pre.mk>

SRCBASE?=	/usr/src

.if !exists(${SRCBASE}/contrib/top) || !exists(${SRCBASE}/usr.bin/top)
IGNORE=		need top source to compile
.endif

do-extract:
	@${MKDIR} ${WRKDIR}
	@${CP} -R ${SRCBASE}/contrib/top/ ${WRKSRC}
	@${CP} -R ${SRCBASE}/usr.bin/top/ ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/top ${TARGETDIR}/bin

.include <bsd.port.post.mk>
